package com.jiazhong.mingxing.project.bookstore.commons.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@NoArgsConstructor
@Data
public class Book implements Serializable {
    @TableId
    private String id;
    private String categoryId;
    private String name;
    private String author;
    private String publisher;
    private Double price;
    private String imageName;
    private String description;
    private String createTime;
    private String updateTime;
    private Integer isDeleted;
    private Integer status;
    @TableField(exist = false)
    private Integer number; // 代表的是购物车中的数量
}
